package com.group.nepg.entity;

import com.group.neps.entity.RowAqiData;


//封装表格数据

public class DataDetectionDataLoader {
    private int id;
    private String username;      // 用户名
    private String provinceName;  // 省份名称
    private String cityName;      // 城市名称
    private String address;       // 地址
    private String aqiLevel;      // AQI等级
    private String time;          // 时间
    private RowAqiData rowAqiData;

    public DataDetectionDataLoader(int id, RowAqiData rowAqiData) {
        this.id = id;
        this.username = rowAqiData.getUser().getUsername();
        this.provinceName = rowAqiData.getLocation().getProvince().getName();
        this.cityName = rowAqiData.getLocation().getCity().getName();
        this.address = rowAqiData.getLocation().getAddress();
        this.aqiLevel = rowAqiData.getAqiLevel().toString();
        this.time = rowAqiData.getTime().toString();
        this.rowAqiData = rowAqiData;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAqiLevel() {
        return aqiLevel;
    }

    public void setAqiLevel(String aqiLevel) {
        this.aqiLevel = aqiLevel;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public RowAqiData getRowAqiData() {
        return rowAqiData;
    }

    public void setRowAqiData(RowAqiData rowAqiData) {
        this.rowAqiData = rowAqiData;
    }
}
